package com.qf.order.service.impl;

import com.codingapi.txlcn.tc.annotation.LcnTransaction;
import com.qf.order.mapper.OrderMapper;
import com.qf.order.service.OrderService;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import javax.annotation.Resource;

@Service
public class OrderServiceImpl implements OrderService {

    @Resource
    private OrderMapper orderMapper;

    @Override
    @LcnTransaction
    @Transactional
    public void add() {
        orderMapper.add();
    }
}
